﻿
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="s" uri="/struts-tags" %>

<div id="main">
	<div id="primary">
		<div id="content" role="main">
				<s:iterator value="%{#application.data.list}">
					
					<s:if test="%{category=='question'}">
					<s:property value="%{categoryName}"/> &nbsp;&nbsp;<a href="${home}/a/<s:property value="%{category}"/>/list">更多</a>
					<s:iterator value="rows">
					<header class="entry-header">
							<a title="链向<s:property value="title"/>" href="${home}/a/<s:property value="category"/>/details?id=<s:property value="id"/>"
								target="_blank" rel="bookmark"><s:property value="title"/></a>
							 <SPAN class="by-author" style="float: right;">
							 	<time class="entry-date" datetime="<s:property value="pubTime"/>"><s:property value="@com.fzb.forum4j.util.ParseTools@simpleDateMsg(pubTime)"/></time> &nbsp;&nbsp; <s:property value="userName"/>  &nbsp;&nbsp;
							 	
							 	<s:property value="commentSize"/>回/<s:property value="view"/>阅
							</SPAN>
					</HEADER>
  				</s:iterator>
  					<div style="float: right;"><a href="${home}/a/question/go_edit">我要提问</a></div><br/>
  				</s:if>
  				<s:if test="%{category=='news'}">
  					<div><s:property value="%{categoryName}"/> &nbsp;&nbsp;<a href="${home}/a/<s:property value="%{category}"/>/list">更多</a></div>
					<s:iterator value="rows">

					<header class="entry-header">
							<a title="链向<s:property value="title"/>" href="${home}/a/<s:property value="category"/>/details?id=<s:property value="id"/>"
								target="_blank" rel="bookmark"><s:property value="title"/></a>
							 <SPAN class="by-author" style="float: right;">
							 <time class="entry-date" datetime="<s:property value="pubTime"/>"><s:property value="pubTime.month+1"/>/<s:property value="pubTime.date"/></time>							
							 </SPAN>
					</HEADER>
  				</s:iterator>
  				</s:if>
  				</s:iterator>
		</DIV>
	</DIV>